import mongoose from "mongoose";
// import { encrypt } from "../utils/bcryptjs";
const plRuler = new mongoose.Schema({
  beplarticleid: { type: mongoose.Schema.Types.ObjectId, require: true }, //评论的文章id
  beplid: { type: mongoose.Schema.Types.ObjectId, require: true }, //被评论的人id
  plid: { type: mongoose.Schema.Types.ObjectId, require: true }, //评论的人id
  plcontent: { type: String, require: true },
  isParent:{type:Boolean,default:true},
  beplplid:{type: mongoose.Schema.Types.ObjectId},
  createTime: {
    type: Date,
    default: Date.now,
  },
});
const plModel = mongoose.model("plInfo", plRuler);
export { plModel };
